package com.zhengxiang.onlinexamination.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhengxiang.onlinexamination.base.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (ZQu)实体类
 *
 * @author
 * @since 2023-03-08 14:06:12
 */
@Data
@TableName("question")
public class Qu extends BaseEntity implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer quId;
    /**
     * 题库id
     */
    private Integer quBankId;
    /**
     * 题目类型id
     */
    private Integer quType;
    /**
     * 题目类型名字
     */
    private String quTypeName;
    /**
     * 题目级别
     */
    private Integer levelId;
    /**
     * 题目图片
     */
    private String image;
    /**
     * 题目视频
     */
    private String videoPath;
    /**
     * 题目名
     */
    private String content;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 题目备注
     */
    private String remark;
    /**
     * 题目解析
     */
    private String analysis;

    /*题目答案*/
    @TableField(exist = false)
    private List<QuAnswer> quAnswers;

    /**题库信息*/
    @TableField(exist = false)
    private QuBank quBank;

    @TableField(exist = false)
    private Setting level;


}

